package com.kingint.web.admin.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.bas.entity.BasWarrantyItems;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 保修物品相关表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-21
 */
public interface BasWarrantyItemsService extends IService<BasWarrantyItems> {

    /**
     * 天啊及相关保修物品信息
     * @param basWarrantyItems
     * @return
     */
    int insertWarrantyItemsInfo(BasWarrantyItems basWarrantyItems);

    /**
     * 更新保修物品信息
     * @param basWarrantyItems
     * @return
     */
    int updateWarrantyItems(BasWarrantyItems basWarrantyItems);

    /**
     * 删除保修物品信息
     * @param id
     * @return
     */
    int deleteWarrantyItems(Integer id);

    /**
     * 分页获取保修物品信息
     * @param basWarrantyItems
     * @param pageNum
     * @param pageSize
     * @return
     */
    Object getWarrantyItemsList(BasWarrantyItems basWarrantyItems, Integer pageNum, Integer pageSize);

    /**
     * 获取所有的保修物品信息
     * @return
     */
    List<BasWarrantyItems> getAllWarrantyInfo();

}
